package com.jingran.satokennetty;

import com.jingran.satokennetty.netty.SocketServer;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import javax.annotation.Resource;

@SpringBootApplication
public class SatokenNettyApplication implements CommandLineRunner {

    @Resource
    private SocketServer socketServer;

    public static void main(String[] args) {
        SpringApplication.run(SatokenNettyApplication.class, args);
    }

    @Override
    public void run(String... args) {
        socketServer.start();
    }

}
